module.exports = app => {
    const {
        STRING,
        DOUBLE
    } = app.Sequelize
    const Student = app.model.define('student', {
        name: STRING,
        achievement: DOUBLE,
    })
    Student.associate = () => {
        app.model.Student.belongsTo(app.model.Clazz, {
            foreingKey: "clazz_id",
            targetKey: "id"
        })
    }
    return Student
}